﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace SpaceFight
{
	interface IModel
	{
		void Draw(GameTime p_gameTime);
	}
	
	static class ModelRenderer
	{
		static List<IModel> m_models = new List<IModel>();

		static public void Add(IModel p_model)
		{
			m_models.Add(p_model);
		}
		static public void Remove(IModel p_model)
		{
			m_models.Remove(p_model);
		}

		static public void Draw(GameTime p_gameTime)
		{
			foreach(var model in m_models)
			{
				model.Draw(p_gameTime);
			}
		}
	}
}
